package com.baichuan.zntx.domain.bo;

import com.baichuan.common.core.validate.AddGroup;
import com.baichuan.common.core.validate.EditGroup;
import com.baichuan.zntx.domain.Rfid;
import com.baichuan.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * RFID标签管理业务对象 t_rfid
 *
 * @author Baichuan
 * @date 2024-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Rfid.class, reverseConvertGenerate = false)
public class RfidBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 标签编号
     */
    @NotBlank(message = "标签编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String rfidCode;

    /**
     * 坐标X
     */
    @NotNull(message = "坐标X不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long posX;

    /**
     * 坐标Y值
     */
    @NotNull(message = "坐标Y值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long posY;

    /**
     * 描述信息
     */
    @NotBlank(message = "描述信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String desc;


}
